<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>continue和break</title>
</head>
<body>
    <script language="javascript" type="text/javascript">
    var X;
    document.write("continue语句");
    for(x=1;x<=10;x++)
    {
        if(x%3==0)
        continue;
        document.write(x+'&nbsp');
    }    
    document.write('<br>');
    document.write('break 语句')
    for(x=1;x<=10;x++)
    {
        if(x%3==0)
        break;
        document.write(x+'&nbsp');
    } 

</script>
    
</body>
</html>